<template>
  <view class="wechatSharePictures">
     <img class="wechatShareBottomImg" style="width:100%;height:100vh" show-menu-by-longpress="true" :src="qrCodeUrl" alt />
    <!-- <view class="wechatShareBox">
      <view style="height:67px"></view>
      <view class="wechatShareBox1">
        <view>
          <text class="wechatShareBoxTest1">
            {{ recruitInfosDetailAll.postName }}
          </text>
        </view>
        <view class="padd16">
          <text class="wechatShareTest1">
            {{ recruitInfosDetailAll.lowestSalary  }}-{{
              recruitInfosDetailAll.highestSalary 
            }}元<text
                  v-if="recruitInfosDetailAll.salaryGrantType"
                >/{{ recruitInfosDetailAll.salaryGrantType === 1 ? "日" : recruitInfosDetailAll.salaryGrantType === 2 ? "月" : "年" }}</text>
          </text>
          <text class="mar8 wechatShareTest2">
             <text :key="z" v-for="z in recruitInfosDetailAll.cityName.split(',').splice(1)">{{ z }}</text>
          </text>
          <text class="mar8 wechatShareTest3">|</text>
          <text class="mar8 wechatShareTest2">
            {{ recruitInfosDetailAll.lowestEducation | lowestEducationFun }}
          </text>
        </view>
        <view v-if="recruitInfosDetailAll.highlights">
          <view
            class="wechatShareBoxTest4"
            :key="z"
            v-for="z in recruitInfosDetailAll.highlights.split(',')"
            >{{ z }}</view
          >
        </view>
        <view class="paddtop32">
          <view>
            <img class="paddtop32Img" :src="companyUnit.logo" alt />
          </view>
          <view>
            <view class="paddtop32Test1 whitNoWrap">
              {{ recruitInfosDetailAll.companyUnitsVO.name }}
            </view>
            <view class="paddtop32Test2">
              <text v-if="recruitInfosDetailAll.companyUnitsVO.companyIndustryFirst">{{
                recruitInfosDetailAll.companyUnitsVO.companyIndustryFirst
              }}</text>
              <text v-if="recruitInfosDetailAll.companyUnitsVO.properties">
                {{ recruitInfosDetailAll.companyUnitsVO.properties }}
              </text>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="wechatShareBottom">
      <view class="wechatShareBottomBox">
        <view>
          <view class="wechatShareBottomBox1">长按识别二维码</view>
          <view class="wechatShareBottomBox2">进入小程序查看招聘详情</view>
        </view>
        <view>
         
        </view>
      </view>
    </view> -->
  </view>
</template>

<script>
import { getQRCodeByrecruitInfoIds } from "./api";
export default {
  data() {
    return {
      companyUnit: null,
      qrCodeUrl: "",
      recruitInfosDetailAll: null
    };
  },
  filters: {
    propertiesFun(val) {
      if (val === 1) {
        return "国企";
      } else if (val === 2) {
        return "民营";
      } else if (val === 3) {
        return "合资";
      } else {
        return "";
      }
    },
    lowestEducationFun(val) {
      if (val === 1) {
        return "初中";
      } else if (val === 2) {
        return "中专";
      } else if (val === 3) {
        return "大专";
      } else if (val === 4) {
        return "高中";
      } else if (val === 5) {
        return "本科";
      } else if (val === 6) {
        return "硕士";
      } else if (val === 7) {
        return "博士";
      } else if (val === 8) {
        return "其他";
      } else {
        return "";
      }
    }
  },
  onLoad(e) {
    this.qrCodeUrl = `${e.qrCodeUrl}?token=${uni.getStorageSync("token")}`;
  },
  methods: {}
};
</script>

<style lang="scss">
@import "../../../styles/styles.scss";
@import "./index.scss";
</style>
